package com.after.saas.system.service.impl;

import com.after.saas.system.mapper.OperatorLogMapper;
import com.after.saas.system.model.OperatorLog;
import com.after.saas.system.service.OperatorLogService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Set;

/**
 * <p>
 * 操作日志记录 服务实现类
 * </p>
 *
 * @author hjchen
 * @since 2021-07-17
 */
@Service
public class OperatorLogServiceImpl extends ServiceImpl<OperatorLogMapper, OperatorLog> implements OperatorLogService {

    @Override
    @Cacheable(value = "saas:log",keyGenerator = "customKeyGenerator")
    public List<OperatorLog> getByIds(Set<String> ids) {
        return listByIds(ids);
    }
}
